package com.eric.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * @author Eric
 * @date 2021.2.2
 */
@Data
@Accessors(chain = true)
@TableName("t_user")
@EqualsAndHashCode(callSuper = false)
public class User extends BaseEntity{

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    private String nickName;

    private String userName;

    private String password;

    private Integer usable;

    @TableField(exist = false)
    private List<Role> roles;
}
